/*
 * @Author: xiguan
 * @Email: xiguan.teng@qq.com
 * @Version: 1.0
 * @Date: 2022-07-31 16:56:07
 * @LastEditTime: 2022-07-31 16:58:37
 */


#ifndef _FUNCTIONALMY_H_
#define _FUNCTIONALMY_H_

namespace MySTL{

    // less
    template<class T>
    struct less{
        typedef T               first_argument_type;
        typedef T               second_argument_type;
        typedef bool            result_type;

        result_type operator()( const first_argument_type &x, second_argument_type &y ){
            return x < y;
        }
    };

    // equal_to
    template<class T>
    struct equal_to{
        typedef T               first_argument_type;
        typedef T               second_argument_type;
        typedef bool            result_type;

        result_type operator()( const first_argument_type &x, second_argument_type &y ){
            return x == y;
        }
    };


}

#endif